﻿@model ICollection<Rostfritt.Core.Entities.Company>

@{
    ViewBag.Title = "Företag - Alla";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Företag - Alla</h2>

<table>
    <tr>
        <th>
            Företagsnummer:
        </th>
        <th>
            Namn:
        </th>
        <th colspan="2">
        </th>
    </tr>
    
    @foreach (var m in Model)
    {
        <tr>
            <td>
                @Html.ActionLink(m.CompanyId.ToString(), "Details", new { id = m.CompanyId })
            </td>
            <td>
                @Html.ActionLink(m.CompanyName, "Details", new { id = m.CompanyId })
            </td>
            <td>
                @Html.ActionLink("Ändra", "Edit", new { id = m.CompanyId })
            </td>
            <td>
                @Html.ActionLink("Ta bort", "Delete", new { id = m.CompanyId })
            </td>
        </tr>
    }
</table>
